﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Articles.master" AutoEventWireup="false" CodeFile="ArticleRating.aspx.vb" Inherits="ArticleRating" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
    <legend>Article Details</legend>
    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="422px" 
        DataSourceID="DSArticleRating">
    </asp:DetailsView>
    <asp:SqlDataSource ID="DSArticleRating" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [Title], [AuthorPic], [Topic], [Picture], [DateSubmitted], [Content], [FirstName], [LastName], [ID] FROM [tblArticles] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    </fieldset>
    <br />
    <fieldset>
    <legend>Rate It!</legend>
        <asp:RadioButtonList ID="RBLRate" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:RadioButtonList>
        <asp:Button ID="btnRate" runat="server" Text="Rate" />
    </fieldset>
</asp:Content>

